package com.dstz.org.core.manager.impl;

import com.dstz.org.core.entity.AccountOrg;
import com.dstz.org.core.entity.StockInfo;
import com.dstz.org.core.entity.YanShouInfo;
import com.dstz.org.core.mapper.AccountOrgMapper;
import com.dstz.org.core.manager.AccountOrgManager;
import com.dstz.base.manager.impl.AbBaseManagerImpl;
import org.apache.poi.hpsf.Decimal;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.RequestParam;

import javax.validation.constraints.NotBlank;
import java.util.List;

/**
 *  通用服务实现类
 *
 * @author gaobo
 * @since 2025-03-04
 */
@Service("accountOrgManager")
public class AccountOrgManagerImpl extends AbBaseManagerImpl<AccountOrg> implements AccountOrgManager {
    @Autowired
    private AccountOrgMapper accountOrgMapper;

    @Override
    public Double getDeptBalance(String orgId) {
        return accountOrgMapper.getDeptBalance(orgId);
    }

    @Override
    public List<AccountOrg> listDeptBill(int orgId) {
        return accountOrgMapper.listDeptBill(orgId);
    }

    @Override
    public List<StockInfo> getStockList(String keyword,String id){
        return accountOrgMapper.listStockInfo(keyword,id);
    }
    public List<YanShouInfo> getChildData(String id){
        return accountOrgMapper.getChildData(id);
    }
}
